package net.ericaro.neojavagen.types;

/**
 * <b>TypedIdentifier</b> ::= <{@link net .ericaro .neojavagen .types .Identifier Identifier}> <{@link net .ericaro .neojavagen .types .TypeArguments
 * TypeArguments}>?
 * 
 * @author eric@ericaro.net
 */
public class TypedIdentifier extends net.ericaro.neojavagen.JavaPartComposition {
	private net.ericaro.neojavagen.types.Identifier identifier;

	private net.ericaro.neojavagen.types.TypeArguments typeArguments;

	public TypedIdentifier(net.ericaro.neojavagen.types.Identifier identifier) {
		this.identifier = identifier;
		this.typeArguments = null;
	}

	public TypedIdentifier(net.ericaro.neojavagen.types.Identifier identifier, net.ericaro.neojavagen.types.TypeArguments typeArguments) {
		super();
		this.identifier = identifier;
		this.typeArguments = typeArguments;
	}

	public net.ericaro.neojavagen.types.Identifier getIdentifier() {
		return identifier;
	}

	public net.ericaro.neojavagen.types.TypeArguments getTypeArguments() {
		return typeArguments;
	}

	public void setIdentifier(net.ericaro.neojavagen.types.Identifier identifier) {
		this.identifier = identifier;
	}

	public void setTypeArguments(net.ericaro.neojavagen.types.TypeArguments typeArguments) {
		this.typeArguments = typeArguments;
	}

	@Override
	public java.lang.String toString() {
		return print(identifier, typeArguments);
	}
}
